Skip to content

Don't activate every longpress nightmode#718

Open
golddragon007 wants to merge 1 commit into
sidoh:masterfrom
golddragon007:fix_longpress
Open

Don't activate every longpress nightmode#718
golddragon007 wants to merge 1 commit into
sidoh:masterfrom
golddragon007:fix_longpress

Conversation

@golddragon007

Copy link
Copy Markdown

Partially covers #714 .
It will send only night mode on long OFF button press.
It will send on the update channel "long_press" with true/false when it's possible to do it (ON, OFF, S-, M, S+, W).

bulbId.groupId = arg-9;
result[GroupStateFieldNames::LONG_PRESS] = long_press;
if (long_press) {
result[GroupStateFieldNames::STATE] = "ON";

@Jojo-1000 Jojo-1000 Nov 15, 2024

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the behavior of the packet sniffer. Now when I keep pressing the off button, it will show one "OFF" state and then "ON" with night_mode. Before it was continuous "OFF" with night mode. I am not sure which way is better, but to me it is confusing that I am pressing off but the command shows as on.

@golddragon007

Copy link
Copy Markdown
Author

Uhh, I've completly forget about this... was this fixed meanwhile?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants